import store from "storejs";
import { TOKEN, THEME, USER_KIND } from "./constant";

/*THEME 主题颜色*/
export const getTheme = () => store.get(THEME);
export const setTheme = (theme) => store.set(THEME, theme);
export const delThem = () => store.remove(THEME);

/*TOKEN token */
export const getToken = () => store.get(TOKEN);
export const setToken = (token) => store.set(TOKEN, token);
export const delToken = () => store.remove(TOKEN);

/*getUserKind */
export const getUserKind = () => store.get(USER_KIND);
export const setUserKind = (userKind) => store.set(USER_KIND, userKind);
export const delUserKind = () => store.remove(USER_KIND);
